#ifndef __XMLSTRING_H__
#define __XMLSTRING_H__

#include <xercesc/dom/DOM.hpp>


class XMLStr
{
public :
	XMLStr(const char* const toTranscode)
	{
		fUnicodeForm = xercesc::XMLString::transcode(toTranscode);
	}

	~XMLStr()
	{
		xercesc::XMLString::release(&fUnicodeForm);
	}

	const XMLCh* unicodeForm() const
	{
		return fUnicodeForm;
	}

private :
	XMLCh*   fUnicodeForm;
};


#define X(str) XMLStr(str).unicodeForm()


#endif // __XMLSTRING_H__